import Mock from 'mockjs';
export default [
  {
    type: 'post',
    url: '/host/cloud/roadIndex/history',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|20-30": [
          {
            "id|+1": 0,
            "name": '干线',
            "flow|1-100": 100,
            "speed|1-100": 100,
            "time|1-100": 100,
            "avaParkingNum|1-100": 100,
            "density|1-100": 100,
            "delay|1-100": 100,
            "congestion|1": ['拥堵', '缓行', '畅通'],
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海']
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/roadIndex/trafficVolume',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/roadIndex/density',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/roadIndex/delay',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/roadIndex/congestion',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/roadIndex/speed',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/roadIndex/time',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|24": [
          {
            "timePoint|+1": ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
            "value|1-100": 100
          }
        ]
      })
    }
  },
]